fix(scenarios): sync forbidden public-language regex across summary guards - #8920
Conversation
…uards scenario-summary.ts kept a stale copy of FORBIDDEN_PUBLIC_LANGUAGE that missed rewards/estimated rewards/rankings after JSONbored#913. Export one shared constant from input-model and cover assertPublicSummaryClean for those terms. Closes JSONbored#8885
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #8920 +/- ##
==========================================
- Coverage 93.84% 90.61% -3.24%
==========================================
Files 803 98 -705
Lines 80084 22625 -57459
Branches 24277 3926 -20351
==========================================
- Hits 75157 20502 -54655
+ Misses 3562 1945 -1617
+ Partials 1365 178 -1187
Flags with carried forward coverage won't be shown. Click here to find out more.
|
|
Tip ✅ LoopOver review result - approve/merge recommendedReview updated: 2026-07-26 13:40:06 UTC
Review summary Nits — 4 non-blocking
Decision drivers
Context & advisory signals — never blocks the verdict
Review context
Contributor next steps
Signal definitions
🧪 Chat with LoopOverAsk LoopOver a question about this PR directly in a comment — grounded only in the same cached, public-safe facts shown above, never a new claim.
Full command reference: https://loopover.ai/docs/loopover-commands 🧪 Experimental — new and may change. 🟩 Safe / merged · 🟦 Advisory · 🟨 Held for review · 🟥 Blocked / closed 💰 Earn for open-source contributions like this. Gittensor lets GitHub contributors earn for the work they already do — register to start earning →. Checked by LoopOver, a quiet PR intelligence layer for OSS maintainers.
|
Summary
FORBIDDEN_PUBLIC_LANGUAGEfrominput-model.ts(the Fix public scenario reward/ranking sanitization #913 term set includingrewards?/estimated rewards/rankings?).scenario-summary.tsnow imports that shared constant instead of a stale private copy that missed those terms.assertPublicSummaryCleanand add a unit test proving barerewards/rankingsin headline/notes throw.Closes #8885
Scope
type(scope): short summaryConventional Commit format, for examplefix(api): restore profile access checks.CONTRIBUTING.mdand does not reintroduce GitHub Pages, VitePress,site/, orCNAME.Closes #123) — a linked open issue is required for every contributor PR.Validation
git diff --checknpx vitest run test/unit/scenario-summary.test.ts(11 passed)If any required check was skipped, explain why:
src/scenarios+ unit-test change; vitest covers the synced guard. Full monorepo typecheck/coverage not re-run locally.Safety
UI Evidencesection below with JPG/JPEG or PNG screenshots arranged as organized, captioned, clickable thumbnails. SVG screenshots are not used as review evidence. Review-only screenshots or recordings are not committed to the repository.UI Evidence
N/A — backend/scenarios public-safety guard only; no UI surface change.
Notes